import '@/permission'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)
// 创建并注册 Pinia
const pinia = createPinia()
app.use(pinia)
app.use(router)
// 注意：需添加在 mount 之前
app.use(ElementPlus, {
  locale: zhCn,
})
app.mount('#app')
